//
//  UILabel+WY.m
//  WYModel
//
//  Created by ios on 2017/3/2.
//  Copyright © 2017年 Wy. All rights reserved.
//

#import "UILabel+WY.h"

@implementation UILabel (WY)

-(void)setText:(NSString *)text Font:(UIFont *)font withColor:(UIColor *)color Range:(NSRange)range{
    
    NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:text];
    [str addAttribute:NSForegroundColorAttributeName value:color range:range];
    [str addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, text.length)];
    self.attributedText = str;
}


@end
